//控制台输出 __filename 和 __dirname 两个变量
console.log(__filename);
console.log(__dirname);

let filePath = "";
const path = require("path");
filePath = path.join(__dirname, "global.html");
console.log(filePath);

//查看其在windows和Linux的输出结果。
// console.log(windows.path.join(__dirname, "global.html"));
// console.log(Linux.path.join(__dirname, "global.html"));
